﻿<Window x:Class="Wpf3D.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Canvas>
        <ScrollBar Height="240" Name="scrollbar1" Width="27" Orientation="Vertical" Canvas.Left="12" Canvas.Top="42" Minimum="1"
                   Maximum="100" SmallChange="1" Value="20"/>
        <Label Canvas.Left="41" Canvas.Top="121" Content="OneWay" Height="28" Name="label1"/>
        <TextBox Canvas.Left="165" Canvas.Top="121" Height="23" Name="textbox1" Width="120" Text="{Binding ElementName=scrollbar1, Path=Value,Mode=OneWay}"/>
        <Label Canvas.Left="41" Canvas.Top="160" Content="OneWayToSource" Height="28" Name="label2"/>
        <TextBox Canvas.Left="165" Canvas.Top="160" Height="23" Name="textbox2" Width="120" Text="{Binding ElementName=scrollbar1, Path=Value,Mode=OneWayToSource}"/>
        <Label Canvas.Left="41" Canvas.Top="202" Content="TowWay" Height="28" Name="label3"/>
        <TextBox Canvas.Left="165" Canvas.Top="202" Height="23" Name="textbox3" Width="120" Text="{Binding ElementName=scrollbar1, Path=Value,Mode=TwoWay}"/>
        <Label Canvas.Left="41" Canvas.Top="232" Content="OneTime" Height="28" Name="label4"/>
        <TextBox Canvas.Left="165" Canvas.Top="232" Height="23" Name="textbox4" Width="120" Text="{Binding ElementName=scrollbar1, Path=Value,Mode=OneTime}"/>
        <Button Content="button" Height="25" Width="75" Canvas.Top="20" Canvas.Left="50"  Name="btn1" Click="btn1_Click"/>
        <RepeatButton Content="repeatButton" Delay="100" Height="25" Width="75" Canvas.Top="20" Canvas.Left="130" Name="repeatbtn" Click="repeatbtn_Click"/>
        <CheckBox Content="checkbox" Height="16" HorizontalAlignment="Left" Name="chk1" VerticalAlignment="Top" IsThreeState="True" Indeterminate="chk1_Indeterminate"/>
        <Expander Header="expander"  Canvas.Top="20" Canvas.Left="250" Name="expander1" Width="200">
            <StackPanel>
                <RadioButton Content="radiobutton1" Height="16" Name="rdo1"/>
                <RadioButton Content="radiobutton2" Height="16" Name="rdo2"/>
            </StackPanel>
        </Expander>

        <Button Canvas.Left="50" Canvas.Top="70" Content="Button" Height="23" HorizontalAlignment="Left"  Name="button1" VerticalAlignment="Top" Width="75" 
                  ToolTipService.HorizontalOffset="10"
                  ToolTipService.VerticalOffset="10" >
            <Button.ToolTip>
                <StackPanel>
                    <GroupBox Header="XXX选择题，你懂得...">
                        <GroupBox.Content>
                            <StackPanel>
                                <TextBlock x:Name="A">A:XXXX</TextBlock>
                                <TextBlock x:Name="B">B:XX</TextBlock>
                                <TextBlock x:Name="C">C:OOOO</TextBlock>
                                <TextBlock x:Name="D">D:OO</TextBlock>
                            </StackPanel>
                        </GroupBox.Content>
                    </GroupBox>
                </StackPanel>
            </Button.ToolTip>
        </Button>
        <ScrollViewer Height="108" HorizontalAlignment="Left"  
                     Name="scrollViewer1" VerticalAlignment="Top" Width="167" 
                       VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Canvas.Left="305" Canvas.Top="49">
            <StackPanel x:Name="Test" Orientation="Horizontal">
            </StackPanel>
        </ScrollViewer>

        <TabControl Height="100" HorizontalAlignment="Left"
                     Name="tabControl1" VerticalAlignment="Top" Width="183"
                      TabStripPlacement="Top" Canvas.Left="308" Canvas.Top="180">
            <TabItem Header="星期一" Name="tabItem1">
                <TabItem.Content>
                    <TextBlock x:Name="test1" Text="你懂的"/>
                </TabItem.Content>
            </TabItem>
            <TabItem Header="星期一" Name="tabItem2">
                <TabItem.Content>
                    <TextBlock x:Name="test2" Text="你不懂的"/>
                </TabItem.Content>
            </TabItem>
        </TabControl>
        <Button Canvas.Left="131" Canvas.Top="70" Content="WCF" Height="23" Name="btnWCF" Width="75" Click="btnWCF_Click" />
        <Button Canvas.Left="224" Canvas.Top="70" Content="singleMsg" Height="23" Name="btn2" Width="75" Click="btn2_Click" />
    </Canvas>
</Window>
